import request from '@/utils/request'

// 查询商品资料列表
export function listGoodsdoc(query) {
  return request({
    url: '/domain/goods/list',
    method: 'get',
    params: query
  })
}

// 查询商品资料详细
export function getGoodsdoc(goodsid) {
  return request({
    url: '/domain/goods/' + goodsid,
    method: 'get'
  })
}

// 新增商品资料
export function addGoodsdoc(data) {
  return request({
    url: '/domain/goods',
    method: 'post',
    data: data
  })
}

// 修改商品资料
export function updateGoodsdoc(data) {
  return request({
    url: '/domain/goods',
    method: 'put',
    data: data
  })
}

// 删除商品资料
export function delGoodsdoc(goodsid) {
  return request({
    url: '/domain/goods/' + goodsid,
    method: 'delete'
  })
}
